// 统一成功响应格式
exports.success = (res, message, data) => {
    res.json({
      success: true,
      message,
      data
    });
  };
  
  // 统一错误响应格式
  exports.error = (res, message, statusCode = 500, data = null) => {
    res.status(statusCode).json({
      success: false,
      message,
      data
    });
  };